package cn.iocoder.yudao.module.famous.doctor.controller.app.performance.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 绩效管理-填报记录
 *
 * @author wyx
 * @since 2021-08-18
 */
@Data
@Schema( description="绩效管理-填报记录")
public class PerformanceResult implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "运营商id")
    private Long operatorId;

    @Schema(description = "运营商名称")
    private String operatorName;

    @Schema(description = "运营商手机号")
    private String operatorPhone;

    @Schema(description = "业务负责人 姓名")
    private String businessOwnerName;

    @Schema(description = "项目Id")
    @NotNull(message = "非法请求")
    private String projectKey;

    @Schema(description = "业务名称")
    private String name;

    @Schema(description = "发布标题")
    private String title;

    @Schema(description = "结果id")
    private Long resultId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModified;
}
